import service from '@/utils/request'
// @Tags XhsPreAuthCode
// @Summary 创建xhsPreAuthCode表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsPreAuthCode true "创建xhsPreAuthCode表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /xhsPreAuthCode/createXhsPreAuthCode [post]
export const createXhsPreAuthCode = (data) => {
  return service({
    url: '/xhsPreAuthCode/createXhsPreAuthCode',
    method: 'post',
    data
  })
}

// @Tags XhsPreAuthCode
// @Summary 删除xhsPreAuthCode表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsPreAuthCode true "删除xhsPreAuthCode表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsPreAuthCode/deleteXhsPreAuthCode [delete]
export const deleteXhsPreAuthCode = (params) => {
  return service({
    url: '/xhsPreAuthCode/deleteXhsPreAuthCode',
    method: 'delete',
    params
  })
}

// @Tags XhsPreAuthCode
// @Summary 批量删除xhsPreAuthCode表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除xhsPreAuthCode表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /xhsPreAuthCode/deleteXhsPreAuthCode [delete]
export const deleteXhsPreAuthCodeByIds = (params) => {
  return service({
    url: '/xhsPreAuthCode/deleteXhsPreAuthCodeByIds',
    method: 'delete',
    params
  })
}

// @Tags XhsPreAuthCode
// @Summary 更新xhsPreAuthCode表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.XhsPreAuthCode true "更新xhsPreAuthCode表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /xhsPreAuthCode/updateXhsPreAuthCode [put]
export const updateXhsPreAuthCode = (data) => {
  return service({
    url: '/xhsPreAuthCode/updateXhsPreAuthCode',
    method: 'put',
    data
  })
}

// @Tags XhsPreAuthCode
// @Summary 用id查询xhsPreAuthCode表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.XhsPreAuthCode true "用id查询xhsPreAuthCode表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /xhsPreAuthCode/findXhsPreAuthCode [get]
export const findXhsPreAuthCode = (params) => {
  return service({
    url: '/xhsPreAuthCode/findXhsPreAuthCode',
    method: 'get',
    params
  })
}

// @Tags XhsPreAuthCode
// @Summary 分页获取xhsPreAuthCode表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取xhsPreAuthCode表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /xhsPreAuthCode/getXhsPreAuthCodeList [get]
export const getXhsPreAuthCodeList = (params) => {
  return service({
    url: '/xhsPreAuthCode/getXhsPreAuthCodeList',
    method: 'get',
    params
  })
}

// @Tags XhsPreAuthCode
// @Summary 不需要鉴权的xhsPreAuthCode表接口
// @accept application/json
// @Produce application/json
// @Param data query marketingReq.XhsPreAuthCodeSearch true "分页获取xhsPreAuthCode表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /xhsPreAuthCode/getXhsPreAuthCodePublic [get]
export const getXhsPreAuthCodePublic = () => {
  return service({
    url: '/xhsPreAuthCode/getXhsPreAuthCodePublic',
    method: 'get',
  })
}
